@extends('layout.adminindex')
@section('title', '后台导航管理首页')


@section('topmain')
        <div class="top">
            <div class="topleft">
            <a href="{{url('/admin')}}" target="_parent"><img src="{{ URL::asset('adminlizzj/images/logo.png') }}" title="系统首页" /></a>
            </div>  
            <ul class="nav">
            <li><a href="{{url('/admin')}}"><img src="{{ URL::asset('adminlizzj/images/icon01.png') }}" title="工作台首页" /><h2>后台首页</h2></a></li>
            <li><a href="{{url('/admin/cate')}}" class="selected"><img src="{{ URL::asset('adminlizzj/images/icon02.png') }}" title="导航管理" /><h2>导航管理</h2></a></li>
            <li><a href="{{url('/admin/content')}}" ><img src="{{ URL::asset('adminlizzj/images/icon03.png') }}" title="内容管理" /><h2>内容管理</h2></a></li>
            <li><a href="#" ><img src="{{ URL::asset('adminlizzj/images/icon04.png') }}" title="常用工具" /><h2>常用工具</h2></a></li>
            <li><a href="#" ><img src="{{ URL::asset('adminlizzj/images/icon05.png') }}" title="文件管理" /><h2>文件管理</h2></a></li>
            <li><a href="#" ><img src="{{ URL::asset('adminlizzj/images/icon06.png') }}" title="系统设置" /><h2>系统设置</h2></a></li>
            </ul>   
            <div class="topright">    
            <ul>
            <li><span><img src="{{ URL::asset('adminlizzj/images/help.png') }}" title="帮助"  class="helpimg"/></span><a href="#">帮助</a></li>
            <li><a href="#">关于</a></li>
            <li><a href="" target="_parent">退出</a></li>
            </ul>
            <div class="user">
            <span>admin</span>
            <i>消息</i>
            <b>5</b>
            </div>    
            </div>
        </div>
@endsection


@section('leftmain')
<div class="indexleft">
    <div class="lefttop"><span></span>快捷管理</div>
    
   <dl class="leftmenu">
        
    <dd>
    <div class="title">
    <span><img src="{{ URL::asset('adminlizzj/images/leftico01.png') }}"></span>栏目管理
    </div>
        <ul class="menuson" style="display: block;">
        <li class="active"><cite></cite><a href="{{url('/admin/cate')}}">栏目列表</a><i></i></li>
        <li><cite></cite><a href="{{url('/admin/cate/add')}}">添加栏目</a><i></i></li>
        </ul>    
    </dd>
        
    

    <!-- 修改的部分结束 -->
    </dl>
   </div>

		@endsection

		@section('rightmain')
                    <div class="place"  style="width:1300px">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="{{url('/admin')}}">首页</a></li>
    <li><a href="{{url('/admin/cate')}}">栏目管理</a></li>
    <li><a href="#">栏目列表</a></li>
    </ul>
    </div>
            <div id="errorshow">

                @if (session('success'))
                    <div class="alert alert-success">
                        {{ session('success') }}
                    </div>
                @endif
                @if (session('error'))
                    <div class="alert alert-error">
                        {{ session('error') }}
                    </div>
                @endif
            </div>
    <div class="rightinfo">
    
    <div class="tools">
    
        <ul class="toolbar">
            <li><a href="{{url('/admin/user/add')}}"><span><img src="{{ URL::asset('adminlizzj/images/t01.png') }}" /></span>添加</a></li>
            <li class="clicks" id="getValue"><span><img src="{{ URL::asset('adminlizzj/images/t03.png') }}" /></span>删除</li>
            
        </ul>
    </div>
    
    
    <table class="tablelist" id="listlizzj">
        <thead>
        <tr>
        <th width="60px"><input name="" value=""  type="checkbox"></th>

        <th width="80px">栏目编号</th>
         <th width="80px">自定义排序</th>
        <th >栏目名称</th>
        <th width="120px">栏目模型</th>
        <th width="80px">是否显示</th>
        <th width="80px">信息数量</th>
       
        <th width="200px">操作</th>
        </tr>
        </thead>
        <tbody>
        @foreach($cates as $k=>$v)
        <tr class="" >
            <td><input name=""  type="checkbox" value="{{$v->id}}"></td>
        
            <td>{{$v->cateid}}</td>
            <td><input size="2" type="text" value="{{$v->catediysort}}"></td>
            <td>{{$v->catename}}</td>
            <td>{{$v->catetype}}</td>
            <td>{{str_replace(['yes','no'],['显示','不显示'],$v->cateshow)}}</td>
            <td>{{$v->catemesnum}}</td>

             <td><a href="#" class="tablelink">查看</a>     <a href="" class="tablelink">修改</a>  <a   href="" onclick="javascript:return p_del()"> 删除</a> </td>
        </tr>
       @endforeach         
        </tbody>
    </table>
    


            
    
        
            <div class="tip" id="showtest">
        <div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="{{ URL::asset('adminlizzj/images/ticon.png') }}"></span>
        <div class="tipright">
             <p>是否删除这条信息？</p>
            <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" class="sure" value="确定" type="submit" id="sureone">&nbsp;
        <input name="" class="cancel" value="取消" type="submit" id="cancelone">
        </div>
                
            </div>
        
    </div>
    <script type="text/javascript">
       $('.tablelist tbody tr:odd').addClass('odd');

       
       </script>
            

		@endsection